import { lazy } from "react";
import {createBrowserRouter,Navigate} from 'react-router-dom'

const Home=lazy(()=>import("../pages/Home/Home"))
const Login=lazy(()=>import("../pages/Login/Login"))

const router=createBrowserRouter([
    {
        path:"/",
        element:<Navigate to="/home" replace={true}/>,
    },
    {
        path:"/login",
        element:<Login/>,
    },
    {
        path:"/home",
        element:<Home/>,
    }
])
export default router